﻿#pragma once
#include "Component.h"
#include "Graphics.h"

using namespace DYGraphics;

namespace DYEngine
{
	class Renderer : public Component
	{
	public:
		Renderer();
		virtual bool IsSkinned() = 0;
		virtual void Draw();
		virtual ~Renderer();
	public:
		inline Material* GetMaterial() const
		{
			return mMaterial;
		}

		inline void SetMaterial(Material* pMaterial)
		{
			mMaterial = pMaterial;
		}
	public:
		virtual void Init();
		virtual void Enable();
		virtual void Update();
		virtual void Disable();
		virtual void Destroy();
	protected:
		Material* mMaterial;
	};
}